From: Olaf Hering Date: Fri, 15 Feb 2013 13:32:11 +0000 (+0000) Subject: tools/xc: fix logic error in stdiostream_progress X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7280 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=66de7c75fdf23039bc773dfe49b4cb5c310627cb;p=xen.git tools/xc: fix logic error in stdiostream_progress Setting XTL_STDIOSTREAM_HIDE_PROGRESS should disable progress reporting. Signed-off-by: Olaf Hering Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxc/xtl_logger_stdio.c b/tools/libxc/xtl_logger_stdio.c index 3edf0a2fd7..24922d2d2e 100644 --- a/tools/libxc/xtl_logger_stdio.c +++ b/tools/libxc/xtl_logger_stdio.c @@ -89,7 +89,7 @@ static void stdiostream_progress(struct xentoollog_logger *logger_in, int newpel, extra_erase; xentoollog_level this_level; - if (!(lg->flags & XTL_STDIOSTREAM_HIDE_PROGRESS)) + if (lg->flags & XTL_STDIOSTREAM_HIDE_PROGRESS) return; if (percent < lg->progress_last_percent) {